package cn.edu.ujn.liuklab3.dao;

import cn.edu.ujn.liuklab3.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface OrderDao {

    Order queryById(Integer orderId);

    List<Order> queryAllByLimit(Order order, @Param("pageable") Pageable pageable);

    long count(Order order);

    int insert(Order order);

    int insertBatch(@Param("entities") List<Order> entities);

    int insertOrUpdateBatch(@Param("entities") List<Order> entities);

    int update(Order order);

    int deleteById(Integer orderId);

    List<Order> selectAll(Order order);

    Integer selectCount();
}

